package com.gdut.multiusercommunicationsystem.service;

import com.gdut.multiusercommunicationsystem.model.User;
import com.gdut.multiusercommunicationsystem.mapper.UserMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Resource
    UserMapper userMapper;

    public User getUserByName(String name){
        return userMapper.selectByName(name);
    }

    public int insert(User user){
        return userMapper.insert(user);
    }
}
